<template>
  <el-collapse accordion>
  <el-collapse-item>
    <template slot="title">
        <svg t="1699948946682" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2384" width="32" height="32"><path d="M832 256c0-140.8-115.2-256-256-256S320 115.2 320 256c0 83.2 44.8 160 108.8 204.8C217.6 518.4 64 704 64 928c0 19.2 12.8 32 32 32s32-12.8 32-32C128 697.6 313.6 512 544 512H576c140.8 0 256-115.2 256-256zM384 256c0-108.8 83.2-192 192-192s192 83.2 192 192-83.2 192-192 192-192-83.2-192-192z m448 352c0 19.2-12.8 32-32 32h-128c-19.2 0-32-12.8-32-32s12.8-32 32-32h128c19.2 0 32 12.8 32 32z m192 256c0 19.2-12.8 32-32 32h-320c-19.2 0-32-12.8-32-32s12.8-32 32-32h320c19.2 0 32 12.8 32 32zM672 704h256c19.2 0 32 12.8 32 32s-12.8 32-32 32h-256c-19.2 0-32-12.8-32-32s12.8-32 32-32z" fill="#1296db" p-id="2385"></path></svg>
        基本信息
    </template>
    <div>
        <el-descriptions  direction="vertical" :column="4" border>
  <el-descriptions-item label="档案号">{{mem.filenumber}}</el-descriptions-item>
  <el-descriptions-item label="姓名">{{mem.name}}</el-descriptions-item>
  <el-descriptions-item label="身份证号" :span="2">{{mem.idcard}}</el-descriptions-item>
  <el-descriptions-item label="手机号">{{mem.phonenumber}}</el-descriptions-item>
  <el-descriptions-item label="婚否">{{ mem.isok === 1 ? '是' : '否' }} </el-descriptions-item>
  <el-descriptions-item label="身高">{{mem.memberdynamicinfo.height}}cm</el-descriptions-item>
  <el-descriptions-item label="体重">{{mem.memberdynamicinfo.weight}}kg</el-descriptions-item>

</el-descriptions>
    </div>
    
  </el-collapse-item>
  <el-collapse-item>
    <template slot="title">
<svg t="1699949347456" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6510" width="32" height="32"><path d="M512 502c36.45 0 66-29.55 66-66s-29.55-66-66-66-66 29.55-66 66 29.55 66 66 66z m0-102c19.85 0 36 16.15 36 36s-16.15 36-36 36-36-16.15-36-36 16.15-36 36-36zM631 591c0-33.14-26.86-60-60-60H469c-33.14 0-60 26.86-60 60v138c0 11.05 8.95 20 20 20h16v123c0 22.09 17.91 40 40 40h68c22.09 0 40-17.91 40-40V749h18c11.05 0 20-8.95 20-20V591z m-30 128h-8c-16.57 0-30 13.43-30 30v123c0 5.51-4.49 10-10 10h-19V758.77c0-8.28-6.72-15-15-15s-15 6.72-15 15V882h-19c-5.51 0-10-4.49-10-10V749c0-16.57-13.43-30-30-30h-6V591c0-16.54 13.46-30 30-30h102c16.54 0 30 13.46 30 30v128z" p-id="6511" fill="#1296db"></path><path d="M397 841c-8.28 0-15 6.72-15 15v8c0 13.79-11.21 25-25 25h-28V788.21c0-8.28-6.72-15-15-15s-15 6.72-15 15V889h-27c-13.79 0-25-11.21-25-25V737c0-8.28-6.72-15-15-15h-82.02l116.34-201.5c4.14-7.17 1.68-16.35-5.49-20.49-7.18-4.14-16.35-1.68-20.49 5.49l-68.61 118.84c-11-22.55-16.73-47.33-16.73-72.84 0-91.81 74.69-166.5 166.5-166.5 28.08 0 55.84 7.12 80.26 20.58 7.25 4 16.38 1.36 20.38-5.89s1.36-16.38-5.89-20.38C387.4 363.41 354.64 355 321.5 355 213.15 355 125 443.15 125 551.5c0 36.72 10.08 72.18 29.23 103.15l-43.22 74.85A14.998 14.998 0 0 0 124 752h93v112c0 30.33 24.67 55 55 55h85c30.33 0 55-24.67 55-55v-8c0-8.28-6.72-15-15-15zM919 543.5C919 436.8 832.2 350 725.5 350c-39.95 0-78.29 12.07-110.9 34.92-6.78 4.75-8.43 14.11-3.68 20.89 4.75 6.78 14.11 8.43 20.89 3.68C659.35 390.2 691.74 380 725.5 380c90.15 0 163.5 73.35 163.5 163.5 0 53.18-25.58 102.26-68 132.75V513c0-8.28-6.72-15-15-15s-15 6.72-15 15v351c0 13.79-11.21 25-25 25h-27V684c0-8.28-6.72-15-15-15s-15 6.72-15 15v205h-28c-13.79 0-25-11.21-25-25v-8c0-8.28-6.72-15-15-15s-15 6.72-15 15v8c0 30.33 24.67 55 55 55h85c30.33 0 55-24.67 55-55V711.82c60.6-34.41 98-98.37 98-168.32zM316 320c56.89 0 103-46.11 103-103s-46.11-103-103-103-103 46.11-103 103 46.11 103 103 103z m0-176c40.25 0 73 32.75 73 73s-32.75 73-73 73-73-32.75-73-73 32.75-73 73-73zM724 320c56.89 0 103-46.11 103-103s-46.11-103-103-103-103 46.11-103 103 46.11 103 103 103z m0-176c40.25 0 73 32.75 73 73s-32.75 73-73 73-73-32.75-73-73 32.75-73 73-73z" p-id="6512" fill="#1296db"></path></svg>
家族史
    </template>
    <div>
{{mem.membermedicalhistory.familyhistory}}
    </div>
   
  </el-collapse-item>
  <el-collapse-item>
    <template slot="title">
<svg t="1699949429441" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7793" width="32" height="32"><path d="M905.6 1020H210.4c-26.4 0-48-21.6-48-48V831.2c0-8.8 7.2-16 16-16h52.8c12.8 0 23.2-10.4 23.2-23.2 0-12.8-10.4-23.2-23.2-23.2h-52.8c-8.8 0-16-7.2-16-16V644c0-8.8 7.2-16 16-16h52.8c12.8 0 23.2-10.4 23.2-23.2 0-12.8-10.4-23.2-23.2-23.2h-52.8c-8.8 0-16-7.2-16-16v-108c0-8.8 7.2-16 16-16h52.8c12.8 0 23.2-10.4 23.2-23.2 0-12.8-10.4-23.2-23.2-23.2h-52.8c-8.8 0-16-7.2-16-16V270.4c0-8.8 7.2-16 16-16h52.8c12.8 0 23.2-10.4 23.2-23.2S244 208 231.2 208h-52.8c-8.8 0-16-7.2-16-16V52c0-26.4 21.6-48 48-48h695.2c26.4 0 48 21.6 48 48v920c-0.8 26.4-21.6 48-48 48zM194.4 847.2V972c0 8.8 7.2 16 16 16h695.2c8.8 0 16-7.2 16-16V52c0-8.8-7.2-16-16-16H210.4c-8.8 0-16 7.2-16 16v124.8h36.8c30.4 0 55.2 24.8 55.2 55.2 0 30.4-24.8 55.2-55.2 55.2h-36.8v77.6h36.8c30.4 0 55.2 24.8 55.2 55.2 0 30.4-24.8 55.2-55.2 55.2h-36.8v77.6h36.8c30.4 0 55.2 24.8 55.2 55.2 0 30.4-24.8 55.2-55.2 55.2h-36.8v77.6h36.8c30.4 0 55.2 24.8 55.2 55.2 0 30.4-24.8 55.2-55.2 55.2h-36.8z" p-id="7794" fill="#1296db"></path><path d="M644.8 381.6H568c-4.8 0-8-3.2-8-8v-76.8h-76.8c-4.8 0-8-3.2-8-8v-76c0-4.8 3.2-8 8-8H560V128c0-4.8 3.2-8 8-8h76c4.8 0 8 3.2 8 8v76.8h76.8c4.8 0 8 3.2 8 8v76c0 4.8-3.2 8-8 8H652v76.8c0.8 4.8-3.2 8-7.2 8z m-68.8-16h60v-76.8c0-4.8 3.2-8 8-8h76.8v-60H644c-4.8 0-8-3.2-8-8V136h-60v76.8c0 4.8-3.2 8-8 8h-76.8v60H568c4.8 0 8 3.2 8 8v76.8z m246.4 132.8h-432c-4.8 0-8-3.2-8-8s3.2-8 8-8h432c4.8 0 8 3.2 8 8s-4 8-8 8z m0 135.2h-432c-4.8 0-8-3.2-8-8s3.2-8 8-8h432c4.8 0 8 3.2 8 8s-4 8-8 8z m0 136h-432c-4.8 0-8-3.2-8-8s3.2-8 8-8h432c4.8 0 8 3.2 8 8 0 4-4 8-8 8z m0 135.2h-432c-4.8 0-8-3.2-8-8s3.2-8 8-8h432c4.8 0 8 3.2 8 8 0 4-4 8-8 8zM231.2 286.4H125.6c-30.4 0-55.2-24.8-55.2-55.2 0-30.4 24.8-55.2 55.2-55.2h105.6c30.4 0 55.2 24.8 55.2 55.2 0 30.4-24.8 55.2-55.2 55.2z m-105.6-77.6c-12.8 0-23.2 10.4-23.2 23.2s10.4 23.2 23.2 23.2h105.6c12.8 0 23.2-10.4 23.2-23.2s-10.4-23.2-23.2-23.2H125.6z m105.6 264.8H125.6c-30.4 0-55.2-24.8-55.2-55.2 0-30.4 24.8-55.2 55.2-55.2h105.6c30.4 0 55.2 24.8 55.2 55.2 0 30.4-24.8 55.2-55.2 55.2zM125.6 396c-12.8 0-23.2 10.4-23.2 23.2 0 12.8 10.4 23.2 23.2 23.2h105.6c12.8 0 23.2-10.4 23.2-23.2 0-12.8-10.4-23.2-23.2-23.2H125.6z m105.6 264H125.6c-30.4 0-55.2-24.8-55.2-55.2 0-30.4 24.8-55.2 55.2-55.2h105.6c30.4 0 55.2 24.8 55.2 55.2 0 31.2-24.8 55.2-55.2 55.2z m-105.6-77.6c-12.8 0-23.2 10.4-23.2 23.2 0 12.8 10.4 23.2 23.2 23.2h105.6c12.8 0 23.2-10.4 23.2-23.2 0-12.8-10.4-23.2-23.2-23.2H125.6z m105.6 264.8H125.6c-30.4 0-55.2-24.8-55.2-55.2 0-30.4 24.8-55.2 55.2-55.2h105.6c30.4 0 55.2 24.8 55.2 55.2 0 31.2-24.8 55.2-55.2 55.2z m-105.6-77.6c-12.8 0-23.2 10.4-23.2 23.2 0 12.8 10.4 23.2 23.2 23.2h105.6c12.8 0 23.2-10.4 23.2-23.2 0-12.8-10.4-23.2-23.2-23.2H125.6z" p-id="7795" fill="#1296db"></path></svg>       
        病族史
    </template>
    <div>{{mem.membermedicalhistory.medicalhistory}}</div>
   
  </el-collapse-item>
  <el-collapse-item>
    <template slot="title">
        <svg t="1699949488258" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10655" width="32" height="32"><path d="M123.4 583.2c-26-117.3-32-216.7-17.7-295.4 12.6-69.4 40.9-124 84.1-162.4C232.4 87.6 290 66.1 356.3 63.2c47.2-2.1 88.1 6.1 99.5 10.1l-19.9 56.6c0.1 0 0.2 0.1 0.4 0.1-6.1-1.9-39.6-9-81-6.7-52.8 3-95.9 19.5-128 49.1-32.1 29.6-53.3 72.9-63 128.7-12.2 70.5-6.3 161 17.7 269.1l-58.6 13zM863.6 691.3l-57.3-17.8c92.8-298.8 53.5-431.8 4.2-490.7-57.5-68.9-145.4-59-146.3-58.8l-7.4-59.5c4.9-0.6 121.4-13.8 199.8 79.9 85.6 102.3 88 286.4 7 546.9z" fill="#1296db" p-id="10656"></path><path d="M423 961.8l-59.8-4.4c13-174.4-8-321.7-27.9-414.5-21.6-100.8-46.6-161-46.9-161.6l55.3-23.3c1.1 2.6 27 64.8 49.9 170.5 13.3 61.8 22.8 125.8 28.3 190.4 6.7 80.6 7.1 162.4 1.1 242.9zM706.3 867.6c-45.6-66.4-73.6-133.6-83.1-199.8-7.8-53.9-3.4-107 12.9-157.8 27.8-86.6 80.8-136.6 83.1-138.7l40.9 43.9 0.1-0.1c-0.4 0.4-45.2 43.2-67.7 115.8-29.9 96.3-8.6 198.1 63.4 302.8l-49.6 33.9z" fill="#1296db" p-id="10657"></path><path d="M440.9 261.4m-46.3 0a46.3 46.3 0 1 0 92.6 0 46.3 46.3 0 1 0-92.6 0Z" fill="#1296db" p-id="10658"></path><path d="M609 345.4m-46.3 0a46.3 46.3 0 1 0 92.6 0 46.3 46.3 0 1 0-92.6 0Z" fill="#1296db" p-id="10659"></path><path d="M516.6 532.1m-46.3 0a46.3 46.3 0 1 0 92.6 0 46.3 46.3 0 1 0-92.6 0Z" fill="#1296db" p-id="10660"></path></svg>    
        过敏史
    </template>
    <div>{{mem.membermedicalhistory.allergichistory}}</div>
    
  </el-collapse-item>
</el-collapse>
</template>

<script>
export default {
data () {
  return {
    mem:"",
  }
},
methods:{
  basicinfo(){
        // 发送GET请求
        this.axios
        .get("/rear/basicinfo", {
          params: { id: this.$store.state.name.id},
        })
        .then((rep) => {
          this.mem = rep.data;
          console.log(rep.data);
        });
    }
},
created(){
  this.basicinfo();

}
}
</script>

<style scoped>

</style>